Changed Extractor into an abstract class