Updated complex example to use context defaults