created functions list_items & get_input