The following example will create a menu with the corresponding sub menu