Finished client code, framework for parsing response