First add hex.c and makefile.