Jim's version of the program