Working for learning: a case of mathematics for teaching