Learning very basic erlang