Replaced ArrayList with List

Hiding implementation details of List