Tutorial: creating and connecting compartments