Updated example to reflect delegate changes