Working on a rotation code
Added rotate