Creating line model