add ArrayHandler service and modify demo code.