Updated chapter 3 with grouping and lookahead assertions