first gem, sort files by types and creates folders to place them in