solution (notebook)

Click exercise7Solution.ipynb link to view the file.