Clare/Marzi: fixed some syntax issues in LifeExpentancyFunction