Added Input example with Input and Output streams. Behaves the same