Dissecting the tragedy of "Hamlet"