add get_input method here