Extract features function

Features have to be defined!