What filename do you want to read? test2.txt Read: add 50 Adding took 0 steps. List is now [50] size=1 [50] size=1 Read: remove 50 Removing took 0 steps. List is now [] size=0 Read: add 30 Adding took 0 steps. List is now [30] size=1 [30] size=1 Read: add 80 Adding took 0 steps. List is now [30 80] size=2 [80 30] size=2 Read: remove 80 Removing took 0 steps. List is now [30] size=1 [30] size=1 Read: remove 30 Removing took 0 steps. List is now [] size=0 Read: add 40 Adding took 0 steps. List is now [40] size=1 [40] size=1 Read: add 60 Adding took 0 steps. List is now [40 60] size=2 [60 40] size=2 Read: add 10 Adding took 0 steps. List is now [10 40 60] size=3 [60 40 10] size=3 Read: add 55 Adding took 1 steps. List is now [10 40 55 60] size=4 [60 55 40 10] size=4 Read: add 1000 Adding took 0 steps. List is now [10 40 55 60 1000] size=5 [1000 60 55 40 10] size=5 Read: add 400 Adding took 4 steps. List is now [10 40 55 60 400 1000] size=6 [1000 400 60 55 40 10] size=6 Read: remove 55 Removing took 2 steps. List is now [10 40 60 400 1000] size=5 [1000 400 60 40 10] size=5 Read: remove 400 Removing took 3 steps. List is now [10 40 60 1000] size=4 [1000 60 40 10] size=4