added 'set_default_class' method