Drawing multiple 3D box plots

hey unfortunately, the entire code is part of a group project but I can post the part about the box creation.

ArrayList<PVector> data_points = new ArrayList<PVector>();        //dynamic PVector array
PVector new_p,old_p;

void setup(){
 size(1200,900,P3D); 
}


void draw(){
new_p = new PVector(random(grid_size),random(grid_size), random(100));
pushMatrix();
if(new_p != old_p)
{
 data_points.add(new_p); 
}
 for(int a = 0; a < data_points.size()-1; a++)
 {
   //data_points.add(new_p);
   new_p = data_points.get(a);
   //vec_x = new_p.x;// - old_p.x;
   //vec_y = new_p.y;// - old_p.y;
   //vec_z = new_p.z ;//- old_p.z;
  translate(new_p.x,new_p.y,new_p.z);

  //println(old_p.x);
  fill(0);
  noStroke();
  box(2);
  translate(-new_p.x,-new_p.y,-new_p.z);
 }
popMatrix();
old_p = new_p;


}