(CSCS1320) Added hex.c