Now using immutable list for the sample arraylist