simple c++ class