Now working correctly when I declared the head pointer in the
functionc.cpp file
using ifndef and its working correctly
More functions implemented