Implement static helper method rotate