Connecting Research to Teaching: Reasoning and Justification, with Examples from Technological Environments