writing as a pedagogical tool