Problem 2 and 3

Problem 2, 3