change RestClient to Rest class