Updated cube example