An Agent-Based Approach for Managing E-Commerce Activities