sem2hw4task2: Function, calculating the result, was moved from special
class Computer to main class Calculator. The code became simplier.