Based on a 19th century German play , the musical is set to a rock and roll score and examines the tortured inner lives of a group of adolescents .