A demo project for my answer to http://stackoverflow.com/questions/18537607/what-would-be-a-neater-way-of-writing-this-data/18537762#18537762