Refactoring: added the foreign key.