added answer to problem 21