problem 3 solution & rename files