As an example, with traditional programming, the main function of an application might make function calls into a menu library to display a list of available commands and query the user to select one.[1] The library thus would return the chosen option as the value of the function call, and the main function uses this value to execute the associated command.