improve Complex example