Yusaf cleaned up c++ code, and suggested I use pointers instead of creating new objects