Section 10 of the Indian Contract Act provides that all agreements are contracts if they are made by the free consent of parties competent to contract for a lawful consideration and with a lawful object and are not hereby expressly declared to be void.