Added initial version of cube code to model, got continuous cube working.