Function of nucleus in animal cell