printing an invoice implementation