updated example with missing code