MPOOL: an object-oriented library for task composition and coordination