New_final Code