Write the codes.