adds service management example to sample hooks