Programming Erlang. Chapter 2. Filer server example.