exercise 9

learned how to do clockwise rotation from stack overflow
added a few spaces for an easy read