Arduino Menu and sub menus

Hi everyone,
I am working on an arduino project and I would like to create menus to display on my LCD screen and so be able to select options that would lead to sub menus. I managed to display information on the LCD screen but have no clue how to do a menu.
Can any one tell me where to start.
Thank you very much

This is what I do:

And here is an example of an implementation of it using a rotary encoder and a button and an LCD.

In order to use it you have to implement a virtual class. So while it is efficient and good code, it takes a bit of knowledge of programming to use.