calculator from class