wrote hw2