Picture below shows some text that is annotated in underbrackets with notes "note1", "note2", and "note3". How to do this in latex?

[![enter image description here](https://i.stack.imgur.com/rC0eO.png)](https://i.stack.imgur.com/rC0eO.png)