#!/usr/bin/python

import math

class Line:

	def __init__(self, coord1, coord2):
		self.coord1 = coord1
		self.coord2 = coord2

	def distance(self):
		d = math.sqrt(
			(self.coord2[0]-self.coord1[0])**2 +
			(self.coord2[1]-self.coord1[1])**2
			)
		return d 

	def slope(self):
		s = float(
			(self.coord2[1]-self.coord1[1]) /
			(self.coord2[0]-self.coord1[0])
			)
		return s

# example (x1,y1) (x2,y2)
coord1 = (3,2)
coord2 = (8,10)
c = Line(coord1,coord2)
print(c.distance())
print(c.slope())