Divide final_ex code