Modifying Line class according to coordinates
Object checks