relationships between models is written