Solution to p6