hw2 write up