How is the tragedy in hamlet like that of a spanish tragedy?