most of the way through 2a of hw3