updated ch5 so its much more readable