working on Erlang storehouse solution