Model class should accept ruhoh instance like every other class.

No need to pass in resource.
compile should be a part of the ruhoh instance.
log is a class level variable.

This is legacy code which should be changed.