Added print horizontal table function