Simple Machine with MainMemory Implemntation and Test