<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_selection(cls, strings, title="Select an option", subtitle=None, exit_option=True, _menu=None):
 """ Single-method way of getting a selection out of a list of strings. Args: strings (:obj:`list` of :obj:`str`):
 The list of strings this menu should be built from. title (str):
 The title of the menu. subtitle (str):
 The subtitle of the menu. exit_option (bool):
 Specifies whether this menu should show an exit item by default. Defaults to True. _menu: Should probably only be used for testing, pass in a list and the created menu used internally by the method will be appended to it Returns: int: The index of the selected option. """

        menu = cls(strings, title, subtitle, exit_option)
        if _menu is not None:
            _menu.append(menu)
        menu.show()
        menu.join()
        return menu.selected_option