Added new method to Table.java and related test