SwC - simple algorithm