Add code and output for http://stackoverflow.com/a/14640216/139010