This example solves the 101companies scenarios from 

http://sourceforge.net/apps/mediawiki/developers/index.php?title=101companies

Note that the containment scenario is not relevant for Scala since the data
type ensures that the desired topology cannot be violated.
