Add method for creatingNextGenerations.