finished adding HttpClient code