SmartFunc.c file added