extend a service by anonynous class