purpose of a contract of employment