The modular surface and continued fractions