Finished writing the test switch in hex-main.c