Basic RModel implementation (untested).