return number of chars left in line and added puts function