What is the Function of Genes?

The function of genes is to concentrate all the information needed for the formation of a new being. The genes store every single trait that can be inherited from one generation to another and the basic instructions on the composition of that being.