added memory example