replace deprecated include_class with contain_class