Finished Problem 2 parts a and b