sharing actual memory with struct
making utils file for handy functions. properly using struct to share data