My PA 2 solution