Finishing problem 4.