done ... checked with the input given in paper