Definition and function of alleles