nature and elements of contract