The second code for the frt