A two-dimensional model for quantum gravity