Cube parent class now works.