added one more constructor to service class with functionhandler and challange scheme.