Text this: Modelling bonds and credit default swaps using a structural model with contagion