Nets of cubes