Does a contract always have to be written?