Finished 2nd problem.