Updated rotation functions in Rotation exercise.