Based on a tutorial from Andrew Price (blenderguru.com)

Sideview

 

Behind the Boxes

 

View from the Chain