Writing Cloud Functions & Extending your API