Write list generator
Refactor calling of horizontal lines