Program for preforming operations on a set of 5