Using scanner to get user input from sysin