Old code version.
intermediate changes.
almost  getting cubes.