a demo showing how to use GCD to access an API for data