arraylist in classMath