homework 2 solutions in html, pdf, and ipynb formats