now parses the second line for foo, next step handle the matching and tree building