Changed hardware memory object to be encapsulated in memoryManager