Adding HexagonTools code from Blogposts