Adding solutions to p6 and p7.