Rotate function with 4 arguments

oh thank you v much!