Added generator to create initializer