Updated the way input is read, based on class discussion.
Reading it from standard input.
Planning to provide file input for later versions.