edited hw writeup 2c