Create functional-based init.py and implement averaging operators (mean,median)