created polimorphic calculator