third commit. main.cpp file updated. rotation and angle function added