added insert and __str__ methods