Code from the DataKind UK Summer DataDive 2014