implemented rotate() to Scale.java