alternative solution problem 7 1 1007954