started rewrite of feature extraction in OOP fashion