A reflection framework for teaching math