Updated answer02.c, still need last 2 functions