https://github.com/ontouchstart/sandbox/tree/master/2014-08-19/sandbox/tut4.erl