implement equality operator method for Doctor class