Added searchClass function to search classes on classes hash table before definition to avoid redefinition