completed problem 8. woot woot