PRIMARY ELITIST APPROACH CONVERTED FROM CPP