added user input and parsing user input