making it an averaging calculator