The function of nucleic acids: