work in progress on partitioning example
finalized partition example