add tip 6-10
fix demo code