Modeling financial crises: a schematic approach