new func average
adding tests
fixes
.
.
done
Merge branch 'topic-wojtek'