endl sends a newline followed by a flush of the stream.