adding ruby ctor