Study of Z boson production in pPb collisions at √sNN=5.02 TeV