I used a C program which I wrote myself to help me create this:
https://andrewspuzzles.blogspot.com/...ogen-no-1.html...