private double calculateAverage(List <Integer> marks) { return marks.stream() .mapToDouble(d -> d) .average() .orElse(0.0) }