Teaching and learning writing at primary school: an exploration of writing environments, transcription and text generation