Creating classes for extractor function