trying to use ArrayList