Constructtor is added for MEMORY class