Added the beginning of the code which will check if a program is installed