A compositional model for gesture definition