Structure code with extensions.