Added to_table() method