finished relational link prototype