Added class extension
Added function to print a table either horizontal or vertical
Added function to print a table either horizontal or vertical