added self-contained example to test rhs_func