adding another resource and some logic