added Response class to store data from API responses
changed networking to use Response class