use inheritance: interface for calculator