Copy from http://clc-wiki.net/wiki/K%26R2_solutions:Chapter_4:Exercise_6
Add TODO URL and use upper