How should I fix the problem with the second implementation? Going with the second implementation I can’t run…