using my ArrayList implementation instead of java.util.ArrayList