Source Code of BRAP