rb & bs functions created

both sets of functions have been created and tested…