added rgp code and sine example