Some basic c++ class used for later project