ex2_1_4.mod:

Reference:

Solution: