The teacher's role in promoting students' rationality in the use of algebra as a thinking tool