add line buffer class