created a class called relation checker so we can get a function that will quickly check if a string is a valid relation