Changed activity.cpp and utility.cpp to c file