How to write a contract that secures your freelance freedom