Adding solution for http client exercise