Initial code - compliles and runs but generates incorrect runoff