modified script for the instanciation of new Agents