Implementation of an Agent-based model of a Closed-loop Supply Chain