add memory example