added formula for batting avg