Solution to p7