Update example to use defservices