simple mass function example added