Phenomena related to dispersion and rainbow formation