simple script to calc mean