Created Memory class