An entry for jpearman's programming challenge. (JPC)