Add the methods to get row or column