Group code with procedures and regions