Implemented potential new c-api. Added dummy Cube class.