add a class for allele frequency spectrum (AFS).