Renamed memory_object class to Memory for consistency with naming conventions