sample programs, mean