Made user input its own function