extending the REWG example