Code for extracting features for each phone number