different ways of console reader - examples