mass balance model