Write the Basic codes