<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def doublec(self, j):
 """ True iff j, j-1 contains double consonant """

        if j < 1 or self.b[j] != self.b[j-1]:
            return False
        return self.cons(j)