added first version of feature extraction