Add a (possibly terrible) implementation of relationships