Overloading for operator << in contact class has been implemented( both with pointer and class reference)