added up to section 5
updated to reduce the number of DOM calls
Annotations to section 5 (section 4 required no commentary)