added logistic.m;