figured out how to put all operations in the .cpp file