pr17

Solution to problem 17