initial simple dg rhs code