Passing the gini function