use array's..

Carton[] cartons = new Carton[25];