Naive algorithm: finish