add basic/partitions.cc