defined methods for class contact