Implemented input operation and changed output to print out ascii char rather than value