Adding RestClient class functionality