Added constructor for PArray