Code for detecting churn for a telecommunications company