How to create 2 Contacts, an Account and a custom module (wedding), then link them, once a Lead hits a stage?

How to create 2 Contacts, an Account and a custom module (wedding), then link them, once a Lead hits a stage?

Hello,

I would like to create 2 Contacts, an Account and a Wedding once a Lead hits a certain stage and link them together using a function e.g. the 2 Contacts are linked using a partner field plus linked to the Account, also the Contacts and Account are linked to the Wedding module.

I can create records using a function but I don't know how to create multiple in one function and do the linking, help please!