Added samples to demonstrate ArrayList and also introduce methods.