Add Line class, show off type checking machenism