Added .cpp for implementation of class and main.cpp file