Simple solution to problem 020