who invented the cube