class Point:
	def __init__(self, x, y):
		self.x = x
		self.y = y
	def __str__(self):
		return "("+self.x.__str__()+","+self.y.__str__()+")"
	
class LineSegment:
	def __init__(self, pt1, pt2):
		self.pt1 = pt1
		self.pt2 = pt2
	def __str__(self):
		return "["+self.pt1.__str__()+"],["+self.pt2.__str__()+"]"

seg = LineSegment(Point(1, 1), Point(-3, 4))
print(seg)