Ended the tutorial-example
Bugfix in remove_unvalid_relations and in tutorial-example