Compare the functions of dna and rna