Finished the rotate method 

Although it might be a bit too long xD