writing up homework 2