trying to fold a joinlist and implement the Buffer class with JoinList