added calculation of IRR