Deconfinement transition: a three dimensional model