 Quantum mechanical effects in the nuclear dynamics are included, especially the nonadiabatic effects which are crucial in modeling dynamics on multiple electronic states.The AIMS method makes it possible to describe photochemistry from first principles molecular dynamics, with no empirical parameters.The method has been applied to two molecules of interest in organic photochemistry - ethylene and cyclobutene.