<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def hit(self, code, line, duration):
 """ A line has finished executing. code (code) container function's code object line (int) line number of just executed line duration (float) duration of the line, in seconds """

        entry = self.line_dict[line][code]
        entry[0] += 1
        entry[1] += duration