Wrote psuedocode for API calls