solved p6
added comments for wrong order of p4 and p6