An author's purpose in communicating could be to instruct, persuade, inform, entertain, educate, startle, excite, sadden, enlighten, punish, console, or many, many others.