An attempt at the Checkout Kata in Erlang