Essays on behavior and extreme events