Reading and writing lessons integrated with communication practice and the teaching of discourse functions