Adding solution to p3