There's no need to pass the relations as a parameter. We could simply set them as attribute. It's simpler and more elegant.