#points.py
""" A module to demonstrate special methods __str__ and __eq__
"""

class Point2():
    """Instances are points in 2D space"""

    def __init__(self,x=0,y=0):
        """Initializer: makes new Point2"""
        self.x= x
        self.y= y

    def __str__(self):
        """Returns: string with contents"""
        return '(' + str(self.x) + ', ' + str(self.y) + ')'

    def __eq__(self, other):
        """Returns: True if both coordinates equal"""
        return self.x == other.x and self.y == other.y

class SimplePoint2():
    """Instances are points in 2D space"""

    def __init__(self,x=0,y=0):
        """Initializer: makes new Point2"""
        self.x= x
        self.y= y
