What is it the function of the flower to ensure fertilization of