Added some financial tools code