added more complex example