This code is combination code from the instruction of http://www.capsl.udel.edu/splash/Download.html.