what are the functions of poetry