Added documentation to Problem 4.