Using buffered input reader for an example