Potential-density pairs for flat galaxies