<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def targetword(self, index, targetwords, alignment):
 """Return the aligned targetword for a specified index in the source words"""

        if alignment[index]:
            return targetwords[alignment[index]]
        else:
            return None