Lab 3 with console input and output