Adding Row class.
Changed method calls to use Arrays helper functions.