Add single line I/O segment

Fix #2