Updated example to include convenience variables