added a new function
Merge pull request #1 from dilumdarshana/amends

added a new function