<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set_agent(self, agent):
 """ Links behaviour with its owner agent Args: agent (spade.agent.Agent):
 the agent who owns the behaviour """

        self.agent = agent
        self.queue = asyncio.Queue(loop=self.agent.loop)
        self.presence = agent.presence
        self.web = agent.web