Calculator from class