Dynamic ArrayList is implemented. But need to solve generic warning issue.