changed feature extraction to parser class