Updated example on creating an invoice