Create final_program