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