commiting a working script. Got a bit too creative with an output. Let me know if I need to clean it up.