How to rotate a pen within 3 steps