wrote documentation for selection statements