add memory example; update the library