Parameterized the arrays.
Code formatting changes.