Update and rename main.cpp to p2.cpp