What is the function of the nucleus in the cell?