Executing code for tenants and landlords