Adding prototype for rotation