Added Line class and LineInterface class