attempt at making into module in hopes of not having too deep a stack level
ran into issue with modules that I discuss in lines 79-81, regearing towards make a class rather than module
refactored in multiple class, but stack level still too deep to go beyong range of 10. need to re-think strategy for avoiding stack level too deep