move model class and define it in config.php