Code written while learning Erlang