Fixed Class files

The class files were not declared correctly. I was coding in java.
I need to code in cpp.