Added mean calculation for Statistics.java