[ISSUE #8]put inits in a static function of a class in warlib