What is the function of the genetic material in a cell?