Competition between cell types under cell cycle regulation with apoptosis