<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def vline(self, x, y, height, color):
 """Draw a vertical line up to a given length."""

        self.rect(x, y, 1, height, color, fill=True)