move gini to its own module