A model of the creative writing process