HW2: intermediate commit, still need to finish writeup.