Added specs for Line class, updated Line class