Added getRotation() method