wrote scanRowContents and scanRow function, started getColumnContents function