how do you write a document on an apple computer