Memory simulation class for cs2010