Updated classes, wrote first small program in MainMemory constructor.