Implemented the constructor in the .cpp file