Added example for input and output operator