A reflective protocol for mathematics learning environments