adding problem 6