Adding part a of Problem 2