Created a 'Response' class which parses and stores the JSON object returned by the server.