completed getter and setter and calculating the run average