non optimal solution to number 4, i count up instead of down