[#39] added foreign key and using the helper method