Add Memory JSON fetch and Memory class