got parameters from interface to create the genetic algotitm