added cell factory example