add Name class + raise exception