Assignment 3, Reading data from the console.