update Collection class
Resource class