Adding a span method to ArrayList, LinkedList, and String modules.