Smart Object Cooperation through Service Composition