wrote basic phone-number extrating function