Changing class SimpleDotCom

Using class ArrayList instead of basic array of primitives