Completed work on partTable()