an attempt to recreate and improve on my python arr pee gee