added example for service but example needs to be better