examples/sample10: modify createLines()