<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def head(self, n):
 """ Return a DataAccessObject containing the first n rows :param n: number of rows :return: DataAccessObject """

        return DataAccessObject({k: self.dict[k][:n] for k in self.dict})