ProblemSet2, problem1

finished problem 1