Calculator factory