Added two other versions of the program.