update readme to how use resource method