Different instances on separated functions scopes