Merge pull request #8 from daozhao/fix_example_memory

Fix example memory