Step 4 – Building a transaction header and a transaction