Shakespeare wrote 'hamlet' was a