Replacing add method with classmethod in contact.mechanism #3725

Review ID - 2323002
Merge pull request #142 from param107/feature/task-3725

Replacing add method with classmethod in contact.mechanism #3725