Creation of the class and modifications to C++