Code from my CS2420 Java Library Implementation