Added second part of problem 2.