Code to replicate celery tutorial.