Add partition model. modify mondrian fuction