A simple agent model for general distributed problem solving