Fixed problem 8