save Lecture 5 Problem 9, Problem 8 fix