Code to simulate L3CCD stats