Updated code to accept user input, except it doesn't work yet.  (At least it compiles.)