adding cubes example