New way of defining models and their relationships