added xPartition, tests and x_ methods.