Sec. 23 declares that the ‘object’ or the ‘consideration’ of an agreement needs to be lawful. The word ‘object’ means purpose or design and ‘consideration’ means something in return, as such both object and consideration of an agreement must be lawful, otherwise the agreement is considered to be void.