Wrote logic for max1, still requires code to take input from file