Matrix exercise: updated timer