Better code smell for first algorithm