unit 2 homework (problem 1&2)