update array extract_class! method