Understanding the requirement that the subject matter of a contract must be legal and not contrary to public policy.