Added base classes and filled out test.cpp for memmgmt project