add Partition.java