adding problem 7