Implemented class Rotation with basic methods