exercises from https://github.com/oreillymedia/etudes-for-erlang