Created MaxSum class, main, and test