Program 4: Classifying Substructures