It has several sub-genres , such as detective fiction , legal thriller , and courtroom drama .
It has several sub-genres , including detective fiction ( such as the whodunnit ) , legal thriller , courtroom drama and hard-boiled fiction .