finalized unit4 except sec 8 (regexp)