And here is the result after smoothing. As you can see the cube keeps it's shape. BTW I beveled the edges of the cube if your curious. Did it just for illustration purposes.