+ changed the checkForProgram function to use the Program datastructure