added timer to problem 22 solution