The program now reads from input into output using get and put though it fails when execptions are implemented