added cube class