Optical Principles Involved In The Formation Of A Rainbow