Add rotate_by method with specs