added console example