I defined a service type and my purpose is to create a function with two params. first one is service type which is key of type Service second one is a string array of the a