Add code for hexagon generation