Rewrite AverageList to use Integer.parseInt