Define borders working on lines
Merge