Determine which type of figurative language is used in the following sentence

The flag waved at us from its great height as if to say hello

This uses hyperbole

This uses a simile

This uses a metaphor

This uses personification

This uses personification