Actually, an whodunit is a mystery story. The hero is generally a detective, although sometimes he is a gentleman (apparently a mild mannered worm) who sallies forth at night to become Public Enemy No. One of Crime. Otherwise the formula is exactly the same as that of the Cliff-hanger and follows the same rules.