working example with the migration code base