ryan's paper. Also removed trailing white spaces