Click exercise6Solution.ipynb link to view the file.