adding problem 8