A multi-agent model for handling e-commerce activities