Added accessor methods for rows
Made getter and setter generic