Now using the code frome the late example._c in main.c