Cloud model (grid) and photon packet refactored to classes.