added a script to create the initial constraint tree