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