The movie Snowpiercer speculated about a train that contained all of the survivors of humanity. Acting as a metaphor for the rich against the poor, the further back in the train a person lived, the poorer they were, and then a violent revolution broke out.
J.G. Ballard’s novel High-Rise had a similar premise, only this time it was a luxury apartment building and the poor lived closer to ground level. Once again, violence breaks out. The biggest difference was, unlike Snowpiercer, the people living in the building are free to leave at any time.
Anyway, there’s a movie version coming out starring Geek favorite Tom Hiddleston. See the rather unique trailer after the cut.