need to implement calculator medie