cs problem 29