Constructing a cube from its net