created input_students method