example use of console