various snippets while reading http://realworldocaml.org