implemented ->parse() on main block, which calls ->parse() on each of its children.