read_features() function in extract_features()