Solution to PE#21