Relation solution part 1