Monte Carlo study of the Z(5) model