Added implementation for rotation, translation, and scaling