Demo class for i/o stream