Added an initialize method to compound that allows for dynamic construction of compounds