Add cube class

Add cube class