Working through the learn you some erlang book.