Teaching with the end in mind