refactored float->double
added test for Line