P and ID using blocks and attributes