An exercise in the use of APIs