drawing lines instead of point in DrawFunction
changed the function in the demo