Modelling of selection acting upon the pleioptropic locus in a population with two age classes