Add Algorithms Program 3