Updated example with more complex example