initial code for HCompoundBehavior