Do problem 6 in Erlang, ignore .beam files.