In addition to grappling with his grief over his father's sudden death, Hamlet is also dealing with the ghost's request that he avenge his death and punish Claudius, as he ponders what to do and whether the ghost is a good spirit or a tempter sent by the Devil himself, Hamlet gets caught up in a tangle in his own thoughts.