Fix import in complexity-example test.
New advanced API usage example.