Explain the functional relationships among DNA, genes, alleles, and chromosomes and their roles in inheritance.