1. fix an error in sample code
2. change an external link to maintain consistency with the previous tutorial