Testing: Tested code on guidelines doc sample code- Works

This is the state of the code before I make any cleanups to it. Revert to this when needing to debug