work in progress on the cube program