use method functionality of sum and max in main method
write test cases for sum and max methods