improve console example