added insert and print methods