Add setService example code