adds an extractFeatures function that return a vector of the four features