Updated example project with error management