removed the duplicate memroy class