HW2

Problem 1

Problem 2