add c++ classes example