added sub method
Merge pull request #1 from motaharnaim/branch1

added sub method