Writing as a process of learning