externalize hexagon class