<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def resource_moved(self, resource, new_resource):
 """It is called when a resource is moved"""

        if self.moved is not None:
            self.moved(resource, new_resource)