Foundations for Teaching with Writing