How to set up a GNOME zenity?

I'm creating a script that goes something like this:

#!/bin/bash

zenity --list --checklist --title="Choose Packages to Install" --width="1000" --height="400" \
--column="Select" --column="Package Name" --column="Description" \
GIMP=( " " GIMP "Known as GIMP, GNU Image Manipulation Program is a free and open source photo editor." \ )
if [ $GIMP = "GIMP" ]
then 
	sudo apt-get install $GIMP
fi
Moderator comments were removed during original forum migration.