add rateResource method