added simple script for avg calculation