Algorithms: new demo structure