working example with rotations.