Partitioning and how it works