added problem 6