ctor implemented for unit class