The core (model) logic of the DWM application.