In the following passage, the author uses various literary devices to convey feelings and emotions through descriptive language. Pay attention to the use of personification in the excerpt.
"The restless waves danced playfully against the shore, whispering secrets to the sandy beach. The sun smiled down, casting golden rays that warmed the earth, while the wind, in its gentle embrace, seemed to sing a soft lullaby to the trees."
What does the author mean by personifying the waves and the sun in this passage?