Study of Z boson production in pPb collisions at √s-NN=5.02 TeV