made correction in getRotation example