Updated problem 8
Updated problem 8