Life history traits and phenotypic plasticity in Drosophila melanogaster