Began building the rotate() function.