memory example