What are the essential elements of a valid HP contract?