what are the objectives of writing