Accepting input from the console. Basic validation. Lacking tests for stdin and stdout.