changed to class & took out smart pointers