Added source and header files for rotation.