On the function of flowers