Redirecting to https://www.erlang.org/documentation/doc-5.5.2/pdf/programming_examples-5.5.2.pdf