rbp code sample