Refactor rotation class to make it more readable