A structural approach to the analysis of drama