took me a bit to figure out how to do this properly, but i believe it's improved my understanding of how go works