A cpp version of Brave