rewrite logn/loglogn example