added user input to midterm