ex8_5_5.mod:

Reference:

Solution: