<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_user(self, username):
 """ gets a user with given username if connected """

        for user in self.users:
            if user.id.name == username:
                return user
        return None