Basically, we all are complex as humans. As an example, we are mixtures of good and bad characteristics. No one is perfect in being good or bad. Besides, when we face any trauma or accident, our true nature becomes revealed in restoring our normal life. And, that's exactly what happened to Hamlet in the play, Hamlet, written by Shakespeare.