checking to see what the parents are of the classes in the cls list