simple code for making a line