Homework 3, with comments