function [d,a ] =  generate(a)

if( a.seed>0) RandStream.setGlobalStream(RandStream('mcg16807', 'Seed',a.seed));   end;


Z1=mvnrnd(zeros(1,2),(1-0.2)*eye(2)+0.2*ones(2),a.n);
Z2=normrnd(0,1,a.n,a.dim-2);
Z=[Z1, Z2];

x=1.036433;

Y=2*(-x<Z(:,1) & Z(:,1)<x & -x<Z(:,2) & Z(:,2)<x)-1;

d=data(Z,Y);
