Fix complex example code