Fixing code for "wacky" script

Adding array code to “wacky” script