Create hex.cpp