get_input method added.