refactor the Hexagon class