added entities and a relationship