implement Average custom method + tests