Implementation of "Reasoning about preferences in intelligent agent systems"