Modeling Solar Eruptions