c++ returned objects work.