problem 5 new solution from forum