added part 1 of hw2