Code for the orchestra project