add regex parser
test for problem 2. refactor testing infrastructure to use regex parsing.
add problem 3 tests