Converted hw1 script to ipynb.