class Partition {

    public void addToCell(int index, int element) {
        if (cells.size() < index + 1) {
            addSingletonCell(element);
        } else {
            cells.get(index).add(element);
        }
    }

    public  Partition();
    public  Partition(Partition other);
    public  Partition(int[][] cellData);

}