Modeling Community Resource Management: an Agent-Based Approach