Implemented printing 3-lines