cpp simple class example