Exercise for erlang development