add exception raise
implemented simple digit calculator