C++ version of HW4 ob objects.