Learning to Write and Writing to Learn