define entities and relations