Created initalization method to create a line.