On the formation of cloud and rain