cube class