FINISHED PTable and PDim