Monte Carlo simulation of the two-dimensional planar model