Attempted to implement avgSelectivity() not sure if works