Total mass function

Version 1