complete problem 08 solution