Adding functionallity to feature2.c file