New Method added and Unit Tested

Please have a look the changes and merge .