Visual Reasoning in Discovery, Instruction and Problem Solving