Refectored Replo class using enumerable methods.