Compound of six cubes with rotational freedom