Add solution for P3