adding featurefunction class