Add ModelInterface class to fix deprecation notice