will this work? <https://pastebin.com/6wxHbABc>
# getting-started
o
a
yes that should work fine
g
It will work, but imo instead of global state and singleton I would use just standard class and dependency injection instead