Monte Carlo simulation of air shower development for the study of cosmic ray composition