problem 16 sovled