First working version of the contacts parser