Add PA5 implementation