Change prefix to p, as in problem.
Add tests.