Changed remove(index) to removeAt(index) in the bag class. I wanted a bag of ints and remove(index) and remove(object) had the same type signature and I didn't know which one it would call.